package com.example.myapplication.models;

public class Course {
    private int id;
    private String title;
    private String instructor;
    private String difficulty;
    private double rating;
    private String imageUrl;
    private String description;
    private int categoryId;

    public Course(int id, String title, String instructor, String difficulty,
                  double rating, String imageUrl, String description, int categoryId) {
        this.id = id;
        this.title = title;
        this.instructor = instructor;
        this.difficulty = difficulty;
        this.rating = rating;
        this.imageUrl = imageUrl;
        this.description = description;
        this.categoryId = categoryId;
    }

    // Getters and Setters
    public int getId() { return id; }
    public void setId(int id) { this.id = id; }
    public String getTitle() { return title; }
    public void setTitle(String title) { this.title = title; }
    public String getInstructor() { return instructor; }
    public void setInstructor(String instructor) { this.instructor = instructor; }
    public String getDifficulty() { return difficulty; }
    public void setDifficulty(String difficulty) { this.difficulty = difficulty; }
    public double getRating() { return rating; }
    public void setRating(double rating) { this.rating = rating; }
    public String getImageUrl() { return imageUrl; }
    public void setImageUrl(String imageUrl) { this.imageUrl = imageUrl; }
    public String getDescription() { return description; }
    public void setDescription(String description) { this.description = description; }
    public int getCategoryId() { return categoryId; }
    public void setCategoryId(int categoryId) { this.categoryId = categoryId; }
}